package com.brayan.webapp.controller;

import javax.annotation.Resource;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.servlet.ServletContext;

import com.brayan.webapp.service.location.GoogleLocationService;

@ManagedBean
@ViewScoped
public class PersonalLocationController {
	@EJB
	GoogleLocationService locationService;	
	
	@Resource
	private ServletContext servletContext;

	public String getLocation() {
		return locationService.getCurrentLocation();
	}
}
